<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    // 赋值运算符：将5赋值给a
    let a = 5;
    // console.log()，参数中可以使用,分割，传入多个参数，打印的结果会自动拼接起来
    console.log("a =",a);

    a += 7; // a += 7 -> a = a + 7
    console.log("a =",a); // 12

    let b = 10;
    b -= 2; // b = b - 2;
    console.log("b =",b); // 8

    let c = 10;
    c *= 2; // c = c * 2;

    let d = 10;
    d /= 2; // d = d / 2;

    let f = 10;
    f %= 3; // f = f % 3; 10对3取余，商3余1
    console.log("f = ",f); // f = 1


</script>
</html>